﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="UserManager.aspx.cs" Inherits="WebUI.AdminSite.User.UserManager" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    <p><%=GetText("user.finduser") %></p>
    <div class="finduser">
        <asp:TextBox ID="txtFindUser" CssClass="inputText" runat="server"></asp:TextBox>
        <asp:Button ID="btnFind" CssClass="buttonSearch" runat="server" onclick="btnFind_Click" />
    </div>
    
                
    
    
    <asp:GridView ID="gridViewUsers" CssClass="module width_full" runat="server" 
        AutoGenerateColumns="False" onrowdatabound="gridViewUsers_RowDataBound">
        <Columns>
            <asp:BoundField DataField="Id" HeaderText="ID" 
                SortExpression="Id" >
            <ControlStyle BackColor="#CC99FF" />
            </asp:BoundField>
            <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
            <asp:BoundField DataField="Phone" HeaderText="Phone" />
            <asp:BoundField DataField="Email" HeaderText="Email" />
            <asp:BoundField DataField="Status" HeaderText="Status" /> 
            <asp:BoundField DataField="Roles" HeaderText="Roles" />
                <asp:TemplateField HeaderText="View Details">
                    <ItemTemplate>
                        <asp:HyperLink ID="hplDetail" runat="server" NavigateUrl='<%# String.Format("~/AdminSite/User/UserDetails.aspx?Id={0}",Eval("Id")) %>' Text='<%# Eval("Name") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
        </Columns>
    </asp:GridView>
    </asp:Content>
